package com.atguigu.gmall.product.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class SpuSaleAttrVo {
    @JsonProperty("id")
    private Long id;
    @JsonProperty("spuId")
    private Long spuId;
    @JsonProperty("baseSaleAttrId")
    private Long baseSaleAttrId;
    @JsonProperty("saleAttrName")
    private String saleAttrName;
    @JsonProperty("spuSaleAttrValueList")
    private List<SpuSaleAttrValueListDTO> spuSaleAttrValueList;

    @NoArgsConstructor
    @Data
    public static class SpuSaleAttrValueListDTO {
        @JsonProperty("id")
        private Long id;
        @JsonProperty("spuId")
        private Long spuId;
        @JsonProperty("baseSaleAttrId")
        private Long baseSaleAttrId;
        @JsonProperty("saleAttrValueName")
        private String saleAttrValueName;
        @JsonProperty("saleAttrName")
        private String saleAttrName;
        @JsonProperty("isChecked")
        private Boolean isChecked;
    }
}
